package com.hjs.design.principle.openclose;

/**
 * @auther 韩劲松
 * @school 西安邮电大学
 * @create 2018-12-28 23:08
 */
public class JavaDiscountCourse extends JavaCourse {
    public JavaDiscountCourse(int id, String name, Double price) {
        super(id, name, price);
    }

    public Double getOriginPrice(){
        return super.getPrice();
    }

    @Override
    public Double getPrice(){
        return super.getPrice()*0.83;
    }

}
